package com.ruoyi.house_sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 佣金管理对象 Commmision
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
public class Commmision extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private String custname;
    private String housename;
    private BigDecimal commisionpaid;
    /** 编号 */
    private Long commisionid;

    /** 业务员编号（关联员工表） */
    @Excel(name = "业务员编号", readConverterExp = "关=联员工表")
    private String empid;

    /** 购买房产编号（关联BuyHourse表） */
    @Excel(name = "购买房产编号", readConverterExp = "关=联BuyHourse表")
    private Long buyid;

    /** 已付金额（同时操作房产信息表的已付佣金字段） */
    @Excel(name = "已付金额", readConverterExp = "同=时操作房产信息表的已付佣金字段")
    private BigDecimal paidmoney;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidtime;

    /** 操作人（session取值，登录账号） */
    @Excel(name = "操作人", readConverterExp = "s=ession取值，登录账号")
    private String userid;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprtime;

    /** 是否有效（有效，作废） */
    @Excel(name = "是否有效", readConverterExp = "有=效，作废")
    private String invalid;

    public BigDecimal getCommisionpaid() {
        return commisionpaid;
    }

    public void setCommisionpaid(BigDecimal commisionpaid) {
        this.commisionpaid = commisionpaid;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getHousename() {
        return housename;
    }

    public void setHousename(String housename) {
        this.housename = housename;
    }

    public void setCommisionid(Long commisionid)
    {
        this.commisionid = commisionid;
    }

    public Long getCommisionid() 
    {
        return commisionid;
    }
    public void setEmpid(String empid) 
    {
        this.empid = empid;
    }

    public String getEmpid() 
    {
        return empid;
    }
    public void setBuyid(Long buyid) 
    {
        this.buyid = buyid;
    }

    public Long getBuyid() 
    {
        return buyid;
    }
    public void setPaidmoney(BigDecimal paidmoney) 
    {
        this.paidmoney = paidmoney;
    }

    public BigDecimal getPaidmoney() 
    {
        return paidmoney;
    }
    public void setPaidtime(Date paidtime) 
    {
        this.paidtime = paidtime;
    }

    public Date getPaidtime() 
    {
        return paidtime;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setOprtime(Date oprtime) 
    {
        this.oprtime = oprtime;
    }

    public Date getOprtime() 
    {
        return oprtime;
    }
    public void setInvalid(String invalid) 
    {
        this.invalid = invalid;
    }

    public String getInvalid() 
    {
        return invalid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commisionpaid", getCommisionpaid())
            .append("custname", getCustname())
            .append("housename", getHousename())
            .append("commisionid", getCommisionid())
            .append("empid", getEmpid())
            .append("buyid", getBuyid())
            .append("paidmoney", getPaidmoney())
            .append("paidtime", getPaidtime())
            .append("userid", getUserid())
            .append("oprtime", getOprtime())
            .append("invalid", getInvalid())
            .toString();
    }
}
